/**
 * 主题页面显示
 */
;window.AiPublish = function AiPublish() {
	var initConstant=function() {
		/**
		 * 加载后初始化应用id和场景id
		 */
		var search = window.location.search,
		// 反序列化传入的参数
		params = TempoUtils.unSerialize(search);
		if(params.projectId) {
			window[constant.APP_ID] = params.projectId;
		}
		if(params.subjectId) {
			window[constant.ANALYSE_ID] = params.subjectId;
		}
		if(params.analyseId) {
			window[constant.ANALYSE_ID] = params.analyseId;
		}
		if(window.analyseId) {
			window[constant.ANALYSE_ID] = analyseId;
		}
	}
	this.init = function() {
		initConstant();
		var analyseId = window[constant.ANALYSE_ID];
		var publishObjService = new MinePublishObjController(analyseId);
		loadAnalyseThemeAll(publishObjService,analyseId);
		Eventbus.one('aiview.pub.initgrid', function() {
			loadAnalyseThemeAll(publishObjService,analyseId);
		});
	};
}

